//
//  NEDBaseObject.m
//  MoreCoin
//
//  Created by 林宁宁 on 2019/9/18.
//  Copyright © 2019 MoreCoin. All rights reserved.
//

#import "NEDBaseObject.h"


@implementation NEDBaseObject

+(NSDictionary<NSString *,id> *)modelCustomPropertyMapper{
    NSMutableDictionary * dataDic = [NSMutableDictionary new];
    [dataDic addEntriesFromDictionary:@{
//        @"ned_id":@"id",
//        @"m_id":@"id",
        @"ID":@"id",
//        @"itemID":@"id"
    }];
    
    NSDictionary * ned_dic = [self ned_modelCustomPropertyMapper];
    if(ned_dic){
        [dataDic addEntriesFromDictionary:ned_dic];
    }
    return dataDic;
}

+(NSDictionary<NSString *,id> *)ned_modelCustomPropertyMapper{
    return nil;
}

+(NSArray *)ned_modelsWithArray:(id)json{
    return [NSArray yy_modelArrayWithClass:[self class] json:json];
}

+(instancetype)ned_modelWithDictionary:(id)json{
    return [[self class] yy_modelWithDictionary:json];
}


-(instancetype)init{
    self = [super init];
    if(self){
        [self ned_commonInit];
    }
    return self;
}
- (void)ned_commonInit{
    
}
@end
